package hotciv.standard;

import hotciv.framework.City;
import hotciv.framework.GameConstants;
import hotciv.framework.Player;

/** Standard city implementation. */

public class StandardCity implements City 
{
	protected Player owner;
	protected int size;
	protected int treasury;
	protected String production = GameConstants.ARCHER;
	protected String focus;
	
	public StandardCity(Player owner, int size)
	{
		this.owner = owner;
		this.size = size;
		this.treasury = 0;
	}
	
	@Override
	public Player getOwner() 
	{
		return owner;
	}

	@Override
	public String getProduction() 
	{
		return production;
	}
	
	public void setProduction(String unit)
	{
		production = unit;
	}

	@Override
	public int getSize() 
	{
		return size;
	}

	@Override
	public String getWorkforceFocus() 
	{
		return focus;
	}
	
	public void setWorkforceFocus(String balance)
	{
		focus = balance;
	}
	
	public void setOwner(Player o)
	{
		this.owner = o;
	}
	
	public void incrementTreasury(int i)
	{
		treasury += i;
	}
	
	public int getTreasury()
	{
		return treasury;
	}	

	public void decrementTreasury(int i)
	{
		treasury -= i;
	}
	
	public int getPopulation()
	{
		return 1;
	}
}
